package com.igeek.base.ch0712.Demo2;

/**
 * @Description TODO
 * @Author chenmin
 * @Date 2024/7/13 12:25
 */
public class Employee extends Person implements Add{
    private String ID;
    private double wage;
    private int age;

    public Employee(String name, String address, String ID, double wage, int age) {
        super(name, address);
        this.ID = ID;
        this.wage = wage;
        this.age = age;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public double getWage() {
        return wage;
    }

    public void setWage(double wage) {
        this.wage = wage;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "姓名："+getName()+"，地址："+getAddress()+"，ID:"+getID()+"，工资："+getWage()+"，工龄："+getAge();
    }

    @Override
    public void increaseSalary() {
        wage *= 1.1;
    }
}
